/*
 * 百度在线网络技术（北京）有限公司拥有本软件版权2022并保留所有权利。
 * Copyright 2022, Baidu.com,Inc 2:Baidu Online Network Technology (Beijing) Co.,Ltd,
 * All rights reserved.
 */

package com.azdebugit.java8.future;

import java.util.concurrent.Callable;

class MyThreadt44 implements Callable<String> {
	private String commandstr;          // 要运行的mingling
	public MyThreadt44(String commandstr) {
		this.commandstr = commandstr;
	}
	@Override
	public String call() throws Exception {
		int sum = 0;
		for (int i = 0; i < 50; i++) {
			Thread.sleep(200);
			sum += i;
			System.out.println("Mythread4: "+i);
		}
		return String.valueOf(sum+400000);
	}
}